.buy-course-container {
  min-height: 100vh;
  background-color: #f5f7fa;
  padding-bottom: 120rpx;

  // 课程卡片
  .course-card {
    background: #fff;
    margin: 20rpx;
    border-radius: 16rpx;
    overflow: hidden;
    box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05);

    .course-cover {
      width: 100%;
      height: 400rpx;
    }

    .course-info {
      padding: 24rpx;

      .course-title {
        font-size: 32rpx;
        font-weight: 600;
        color: #333;
        line-height: 1.4;
      }

      .course-stats {
        display: flex;
        margin-top: 16rpx;

        .stat-item {
          display: flex;
          align-items: center;
          margin-right: 24rpx;
          color: #666;
          font-size: 24rpx;

          .iconfont {
            margin-right: 6rpx;
            font-size: 28rpx;
          }
        }
      }

      .price-box {
        margin-top: 20rpx;
        display: flex;
        align-items: center;

        .current-price {
          font-size: 40rpx;
          color: #ff6b6b;
          font-weight: 600;
        }

        .original-price {
          font-size: 26rpx;
          color: #999;
          text-decoration: line-through;
          margin-left: 16rpx;
        }

        .discount-tag {
          background: #fff5f5;
          color: #ff6b6b;
          font-size: 22rpx;
          padding: 4rpx 12rpx;
          border-radius: 20rpx;
          margin-left: 16rpx;
        }
      }
    }
  }

  // 课程介绍
  .course-intro-section {
    background: #fff;
    margin: 20rpx;
    padding: 24rpx;
    border-radius: 16rpx;
    box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05);

    .intro-content {
      margin-top: 20rpx;

      .intro-text {
        font-size: 28rpx;
        color: #666;
        line-height: 1.6;
      }

      .intro-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 16rpx;
        margin-top: 24rpx;

        .tag-item {
          background: #f0ebff;
          color: #8155f0;
          font-size: 24rpx;
          padding: 8rpx 20rpx;
          border-radius: 24rpx;
        }
      }

      .intro-features {
        margin-top: 24rpx;

        .feature-item {
          display: flex;
          align-items: center;
          margin-bottom: 16rpx;

          .iconfont {
            color: #8155f0;
            font-size: 32rpx;
            margin-right: 12rpx;
          }

          .feature-text {
            font-size: 26rpx;
            color: #333;
          }
        }
      }
    }
  }

  // 章节列表
  .chapters-section {
    background: #fff;
    margin: 20rpx;
    padding: 24rpx;
    border-radius: 16rpx;
    box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.05);

    .section-title {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 20rpx;

      .title-text {
        font-size: 32rpx;
        font-weight: 600;
        color: #333;
      }

      .chapter-stats {
        font-size: 26rpx;
        color: #999;
      }
    }

    .chapter-list {
      margin-top: 20rpx;

      .lesson-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 24rpx 0;
        border-bottom: 2rpx solid #f5f5f5;

        &:last-child {
          border-bottom: none;
        }

        .lesson-left {
          display: flex;
          align-items: center;
          flex: 1;
          // overflow: hidden;

          .lesson-index {
            width: 48rpx;
            font-size: 28rpx;
            color: #999;
            text-align: center;
          }

          .lesson-cover {
            width: 160rpx;
            height: 90rpx;
            border-radius: 8rpx;
            margin: 0 20rpx;
            background-color: #f5f5f5;
            flex-shrink: 0;
          }

          .lesson-info {
            height: 90rpx;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            flex: 1;
            overflow-y: scroll;

            // 隐藏滚动条 - WebKit浏览器
            &::-webkit-scrollbar {
              display: none;
            }

            // 隐藏滚动条 - Firefox
            scrollbar-width: none;

            // 隐藏滚动条 - IE
            -ms-overflow-style: none;

            .lesson-title {
              font-size: 28rpx;
              color: #333;
              font-weight: 500;
              line-height: 1.4;
              // @include text-ellipsis;
            }

            .lesson-desc {
              font-size: 24rpx;
              color: #999;
              line-height: 1.4;
              // @include text-ellipsis;
            }
          }
        }

        .lesson-duration {
          font-size: 24rpx;
          color: #999;
          min-width: 80rpx;
          text-align: right;
          margin-left: 20rpx;
          flex-shrink: 0;
        }
      }
    }
  }

  // 底部购买栏
  .bottom-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100rpx;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 34rpx;
    box-shadow: 0 -2rpx 12rpx rgba(0, 0, 0, 0.05);

    .price-info {
      flex: 1;

      .current-price {
        font-size: 36rpx;
        color: #ff6b6b;
        font-weight: 600;
      }

      .original-price {
        font-size: 24rpx;
        color: #999;
        text-decoration: line-through;
        margin-left: 12rpx;
      }
    }

    .buy-btn {
      margin-left: auto;
      background: linear-gradient(135deg, #8155f0, #6b42ef);
      color: #fff;
      font-size: 30rpx;
      padding: 0 60rpx;
      height: 72rpx;
      line-height: 72rpx;
      border-radius: 36rpx;
      border: none;

      &:active {
        opacity: 0.9;
      }
    }
  }
}